public class Juzhengxiangcheng {

    public static All Multiple(All a, All b) {
        int i = 0, j = 0, k = 0;
        int len = 0;
        All c = new All(a.nums + b.nums);
        c.cols = a.cols;
        c.rows = b.rows;
        if (a.cols != b.rows ) {
            System.out.println("两矩阵不能相乘");
            return null;

        }
        else  {
            System.out.println("矩阵可以相乘，矩阵相乘后为：");
            for(k=0;k<a.data[i].column*b.data[j].row;k++){
                c.data[k].value=0;
                k=0;
                while (i<a.nums){
                    for(j=0;j<b.nums;j++){
                        if((a.data[i].column==b.data[j].row)){
                            c.data[k].row=a.data[i].row;
                            c.data[k].column=b.data[j].column;
                            c.data[k].value=a.data[i].value*b.data[k].value;
                            for (len=0;len<k;len++){
                                if(c.data[k].row==c.data[len].row&&c.data[k].column==c.data[len].column){
                                    c.data[len].valu




                                e+=c.data[k].value;
                                    k--;
                                }
                                k++;
                            }

                        }

                    }i++;
                }c.nums=k;
            }

//        if(a.data[i].column==b.data[j].row){
//
//          }
            c.printMaterix();
            c.output0();
            return c;
        }



    }
